package com.voxel.sense.infomsg.module.user.audit;

import android.content.Context;
import android.view.View;
import android.widget.BaseAdapter;
import android.widget.TextView;

import com.example.com.common.view.adapter.TBaseAdapter;
import com.example.com.common.view.recycler.RecyclerAdapter;
import com.voxel.sense.infomsg.R;
import com.voxel.sense.infomsg.data.bean.ConditionBean;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import cyy.example.com.facotry.constants.Constants;

/**
 * @author ChenYiYao
 * @date 2018/5/14
 * des :
 */
public class UserTypeAdapter extends TBaseAdapter<ConditionBean> {

    public UserTypeAdapter(Context context) {
        super(context, new ArrayList<>(), R.layout.layout_textview);
    }

    @Override
    public void initView(ViewHolder holder) {
        holder.addView(R.id.iv_desc_icon);
    }

    @Override
    public void setViewValue(ViewHolder holder, int position) {
        TextView textView = holder.getTextView(R.id.iv_desc_icon);
        textView.setText(list.get(position).getDesc());
    }


//    @Override
//    protected int getItemViewType(int position, ConditionBean conditionBean) {
//        return R.layout.item_recycle_flow_drop_down;
//    }
//
//    @Override
//    protected ViewHolder<ConditionBean> onCreateViewHolder(View root, int viewType) {
//        return new ViewHoder(root);
//    }
//
//    static class ViewHoder extends ViewHolder<ConditionBean> {
//        @BindView(R.id.text)
//        TextView text;
//        public ViewHoder(View itemView) {
//            super(itemView);
//        }
//
//        @Override
//        protected void onBind(ConditionBean bean) {
//            text.setText(bean.getDesc());
//        }
//    }

}
